package com.letv.app.ljodfh.beans;

/**
 * @author suming
 * @date 2020/4/13 16:29
 */
public class EventMessage {
    private int key;
    private Object message;
    private int flags;

    public int getKey() {
        return key;
    }

    public Object getMessage() {
        return message;
    }

    public int getFlags() {
        return flags;
    }

    private EventMessage(Builder builder) {
        key = builder.key;
        message = builder.message;
        flags = builder.flags;
    }

    public static final class Builder {
        private int key;
        private Object message;
        private int flags;

        public Builder() {
        }

        public Builder key(int val) {
            key = val;
            return this;
        }

        public Builder message(Object val) {
            message = val;
            return this;
        }

        public Builder flags(int val) {
            flags = val;
            return this;
        }

        public EventMessage build() {
            return new EventMessage(this);
        }
    }
}
